package cn.edu.hatu.bookshop;

import cn.edu.hatu.bookshop.dao.ClassifyMapper;

import cn.edu.hatu.bookshop.service.ClassifyService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class testClassify {

   private ClassifyService classifyService;
   @Autowired
    public void setClassifyService(ClassifyService classifyService) {
        this.classifyService = classifyService;
    }
    @Test
    public void getClassifyName(){
       String name = classifyService.getClassifyName(1);
        System.out.println("name:"+name);
    }
    @Test
    public void getClassifyId(){
       int classifyId = classifyService.getClassifyId("小说");
        System.out.println("classifyId: "+classifyId);
    }
}
